package com.zy.cat.common.utils.dtk;


import java.util.TreeMap;

/**
 * @projectName:dtk-items-openapi
 * @createTime: 2019/04/19 13:40
 * @description:
 */
public class Demo {
 
    private static final String appSecret = "df3208639648b1080111648b96b96649";//应用sercret
    private static final String appKey = "5d7603c948b71"; //应用key
    private static final String host = "https://openapi.dataoke.com/api/category/get-top100";//应用服务接口
    public static void main(String[] args) {
        TreeMap<String,String> paraMap = new TreeMap<>();
        paraMap.put("version","v1.0.1");
        paraMap.put("appKey",appKey);
        paraMap.put("sign", SignMD5Util.getSignStr(paraMap,appSecret));
        System.out.println(HttpUtils.sendGet(host,paraMap));
    }
}
